package com.example.campusforumapi.service;

import com.example.campusforumapi.entity.Department;
import com.example.campusforumapi.util.PageResult;

import java.util.List;

public interface DepartmentService {
    /*
    * 学院信息分页查询
    * */
    PageResult getDepartmentPage(Integer page, Integer pageSize);

    int delDepartment(List<Integer> ids);

    /*
     * 查找相同院系名名数量
     * */
    int findsamedepartmentName(String departmentName);
    /*
     * 查找相同院系ID数量
     * */
    int findsameDepartmentId(Integer departmentId);

    /*
     * 添加
     * @paramDepartment
     * */
    int insertDepartment(Department department);
    /*
     * 修改
     * @paramDepartment
     * */
    int updDepartment(Department department);
}
